package com.mazarine.components.videoplayer 
{
	import flash.events.Event;
	
	/**
	 * ...
	 * @author Benoit Petrus
	 */
	public class PlayerEvent extends Event 
	{
		static public const DURATION_RECEIVED:String = "durationReceived";
		static public const POSITION_CHANGED:String = "positionChanged";
		static public const BUFFER_EMPTY:String = "bufferEmpty";
		static public const BUFFER_FULL:String = "bufferFull";
		static public const VIDEO_END:String = "videoEnd";
		static public const VIDEO_STARTS:String = "videoStarts";
		//static public const CUEPOINTS_RECEIVED:String = "cuepointsReceived";
		
		public function PlayerEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false) 
		{ 
			super(type, bubbles, cancelable);
			
		} 
		
		public override function clone():Event 
		{ 
			return new PlayerEvent(type, bubbles, cancelable);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("PlayerEvent", "type", "bubbles", "cancelable", "eventPhase"); 
		}
		
	}
	
}